<script>
    let name = 'test';
</script>

<div class="bold {name} red">text</div>

<style>
    .bold { font-weight: bold; }
    .red { color: red; }
</style>
